import Vue from 'vue'
import VueRouter from 'vue-router'
import Settlement from '../views/settlement.vue'
import TakePhotos from '../views/TakePhotos.vue'
import QRCodeScanner from '../views/QRCodeScanner.vue'
import Myecharts from '../views/Myecharts/index.vue'
import GetMytoken from '../views/GetMytoken.vue'
import SystemSettings from '@/views/SystemSettings.vue'
import eseach from "@/views/eseach.vue"

Vue.use(VueRouter)

const routes = [
  {
    path: '/eseach',
    name: 'eseach',
    component: eseach,
  },
  {
    path: '/',
    name: 'GetMytoken',
    component: GetMytoken,
  },
  {
    path: '/SystemSettings',
    name: 'SystemSettings',
    component: SystemSettings,
  },
  {
    path: '/Myecharts',
    name: 'Myecharts',
    component: Myecharts,
  }
  ,
  {
    path: '/settlement',
    name: 'settlement',
    component: Settlement,
  },
  {
    path: '/TakePhotos',
    name: 'TakePhotos',
    component: TakePhotos,
  },
  {
    path: '/QRCodeScanner',
    name: 'QRCodeScanner',
    component: QRCodeScanner,
  }
]

const router = new VueRouter({
  routes
})

export default router
